public class Animal {
    private String name;
    public Animal(String name){
        this.name = name;
    }
    public void eat(){
        System.out.println(this.name + " is eating.");
    }
}
